package com.PAT.practice02;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/02/18/0:39
 * @Description:
 * @Target:
 */
public class B是A的多少倍 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long l1 = in.nextLong();
        int i2 = in.nextInt();


        String s1 = l1 + "";
        String s2 = s1.substring(s1.length()-i2,s1.length())+s1.substring(0,s1.length()-i2);
        long l2 = Long.valueOf(s2);
        double result = (double)l2/l1;
        System.out.format("%.2f",result);

    }
}
